--------------------------------------------------------------- Log Entry : 5/12/2024 9:54:42 PM - ------------------------------------------------------------- obj={ "iId": 0, "sName": "string1", "sCode": "string", "sAltName": "string", "sBarcode": "string", "sRegNo": "string", "sInvNo": "string", "iAssetType": 0, "iAssetSubCategory": 0, "iCompany": 0, "iLocation": 0, "iSupplier": 0, "iProject": 0, "iWarehouse": 0, "iPurchaseDate": "2023-10-11", "fPurchaseValue": 0, "fCumDeprValue": 0, "fInsuredValue": 0, "fScrapValue": 0, "fITDeprRate": 0, "fITAccr": 0, "sImagepath":"1.jpg", "bDepreciable": true, "sModel": "string", "sMake": "string", "sDateYear": "string", "sSection": "string", "iDepreciation": 0, "iUnitOfUsage": 0, "fLifePeriod": 0, "sDateOfCommencement": "2023-10-11", "iWriteOfPeriodYr": 0, "iWriteOfPeriodMonth": 0, "iAssetAc": 0, "iAccumDeprAc": 0, "iDeprPLAc": 0, "iDisposalGain": 0, "iDisposalLoss": 0, "iQty": 1, "iUser": 1 } --------------------------------------------------------------- Log Entry : 5/12/2024 9:54:42 PM - ------------------------------------------------------------- VanSalesController Method:PostAsset System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) at Sang.Asset.WebAPI.Controllers.VanSalesController.PostAsset() --------------------------------------------------------------- Log Entry : 5/12/2024 9:55:00 PM - ------------------------------------------------------------- obj={ "iId": 0, "sName": "string1", "sCode": "string", "sAltName": "string", "sBarcode": "string", "sRegNo": "string", "sInvNo": "string", "iAssetType": 0, "iAssetSubCategory": 0, "iCompany": 0, "iLocation": 0, "iSupplier": 0, "iProject": 0, "iWarehouse": 0, "iPurchaseDate": "2023-10-11", "fPurchaseValue": 0, "fCumDeprValue": 0, "fInsuredValue": 0, "fScrapValue": 0, "fITDeprRate": 0, "fITAccr": 0, "sImagepath":"1.jpg", "bDepreciable": true, "sModel": "string", "sMake": "string", "sDateYear": "string", "sSection": "string", "iDepreciation": 0, "iUnitOfUsage": 0, "fLifePeriod": 0, "sDateOfCommencement": "2023-10-11", "iWriteOfPeriodYr": 0, "iWriteOfPeriodMonth": 0, "iAssetAc": 0, "iAccumDeprAc": 0, "iDeprPLAc": 0, "iDisposalGain": 0, "iDisposalLoss": 0, "iQty": 1, "iUser": 1 } --------------------------------------------------------------- Log Entry : 5/12/2024 9:55:00 PM - ------------------------------------------------------------- VanSalesController Method:PostAsset System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) at Sang.Asset.WebAPI.Controllers.VanSalesController.PostAsset() --------------------------------------------------------------- Log Entry : 5/12/2024 9:55:23 PM - ------------------------------------------------------------- obj={ "iId": 0, "sName": "string1", "sCode": "string", "sAltName": "string", "sBarcode": "string", "sRegNo": "string", "sInvNo": "string", "iAssetType": 0, "iAssetSubCategory": 0, "iCompany": 0, "iLocation": 0, "iSupplier": 0, "iProject": 0, "iWarehouse": 0, "iPurchaseDate": "2023-10-11", "fPurchaseValue": 0, "fCumDeprValue": 0, "fInsuredValue": 0, "fScrapValue": 0, "fITDeprRate": 0, "fITAccr": 0, "sImagepath":"1.jpg", "bDepreciable": true, "sModel": "string", "sMake": "string", "sDateYear": "string", "sSection": "string", "iDepreciation": 0, "iUnitOfUsage": 0, "fLifePeriod": 0, "sDateOfCommencement": "2023-10-11", "iWriteOfPeriodYr": 0, "iWriteOfPeriodMonth": 0, "iAssetAc": 0, "iAccumDeprAc": 0, "iDeprPLAc": 0, "iDisposalGain": 0, "iDisposalLoss": 0, "iQty": 1, "iUser": 1 } --------------------------------------------------------------- Log Entry : 5/12/2024 9:55:23 PM - ------------------------------------------------------------- VanSalesController Method:PostAsset System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) at Sang.Asset.WebAPI.Controllers.VanSalesController.PostAsset()