public TransactionResult <object> BL_SaveIncome(SpendingVM p_SpendingVMObj, int p_UserId) { if (DALObj.DAL_SaveIncome(new TRN_Income { CategoryId = p_SpendingVMObj.CategoryId, Amount = p_SpendingVMObj.Amount ?? 0, CreatedDate = Convert.ToDateTime(p_SpendingVMObj.CreatedDate, CultureInfo.InvariantCulture), Note = p_SpendingVMObj.Note, UserId = p_UserId, IsActive = true }).TransactionResult) { return(new TransactionResult <object> { Success = true, Message = "Income Saved Successfully" }); } else { return(new TransactionResult <object> { Success = false, Message = "Something Went Wrong,Please try again" }); } }