public TransactionResult <object> BL_UpdateExpense(SpendingVM p_SpendingVMObj) { if (DALObj.DAL_UpdateExpense(new TRN_Expense { ExpenseId = p_SpendingVMObj.Id ?? 0, CategoryId = p_SpendingVMObj.CategoryId, Amount = p_SpendingVMObj.Amount ?? 0, CreatedDate = Convert.ToDateTime(p_SpendingVMObj.CreatedDate, CultureInfo.InvariantCulture), Note = p_SpendingVMObj.Note }).TransactionResult) { return(new TransactionResult <object> { Success = true, Message = "Expense Updated Successfully" }); } else { return(new TransactionResult <object> { Success = false, Message = "Something Went Wrong,Please try again" }); } }