public int EditMstPatient(MstPatient mstPatient) { try { using (UnitOfWork unitOfWork = new UnitOfWork(new PsmartContext())) { unitOfWork.MstPatientReposiroty.Update(mstPatient); _result = unitOfWork.Complete(); unitOfWork.Dispose(); return(mstPatient.Ptn_pk); } } catch (Exception e) { Console.WriteLine(e); throw; } }
public int EditMstPatient(MstPatient mstPatient) { return(_mstPatientManager.EditMstPatient(mstPatient)); }