public TransactionResult <object> BL_UpdateIncome(SpendingVM p_SpendingVMObj) { if (DALObj.DAL_UpdateIncome(new TRN_Income { IncomeId = 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 = "Income Updated Successfully" }); } else { return(new TransactionResult <object> { Success = false, Message = "Something Went Wrong,Please try again" }); } }