public void Update_CommissionPaymentRecord() { DLModel2.CommissionID = 1; DLModel2.CommissionPaymentID = 3; DLModel2.CPCheckNumber = "132213"; DLModel2.CPCheckSentOn = System.DateTime.Now; DLModel2.CPPaymentPaidAmount = 25; int patientid = _commissionImplBL.UpdateCommissionPaymentRecord(DLModel2); Assert.IsTrue(true, "Unable to find"); }
public ActionResult SaveEmployerRecord(CommissionPayment _commissionPayment) { try { if (_commissionPayment.CommissionPaymentID == 0) { _icommission.AddCommissionPaymentRecord(Mapper.Map <LMGEDI.Core.Data.Model.CommissionPayment>(_commissionPayment)); return(Json(GlobalConst.alertMessages.SaveMessage, GlobalConst.ContentTypes.TextHtml)); } else { _icommission.UpdateCommissionPaymentRecord(Mapper.Map <LMGEDI.Core.Data.Model.CommissionPayment>(_commissionPayment)); return(Json(GlobalConst.alertMessages.SaveMessage, GlobalConst.ContentTypes.TextHtml)); } } catch (Exception e) { return(Json("")); } }