Пример #1
0
        public UndoDeletePatientUtilizationsDataResponse Put(UndoDeletePatientUtilizationsDataRequest request)
        {
            UndoDeletePatientUtilizationsDataResponse response = new UndoDeletePatientUtilizationsDataResponse();

            try
            {
                RequireUserId(request);
                response         = Manager.UndoDeletePatientPatientUtilizations(request);
                response.Version = request.Version;
            }
            catch (Exception ex)
            {
                RaiseException(response, ex);
            }
            return(response);
        }
Пример #2
0
        public UndoDeletePatientUtilizationsDataResponse UndoDeletePatientPatientUtilizations(UndoDeletePatientUtilizationsDataRequest request)
        {
            UndoDeletePatientUtilizationsDataResponse response = null;

            try
            {
                response = new UndoDeletePatientUtilizationsDataResponse();

                var repo = Factory.GetRepository(RepositoryType.Utilization);
                if (request.Ids != null && request.Ids.Count > 0)
                {
                    request.Ids.ForEach(u =>
                    {
                        repo.UndoDelete(u);
                    });
                }
                response.Success = true;
                return(response);
            }
            catch (Exception ex) { throw ex; }
        }
Пример #3
0
 public UndoDeletePatientUtilizationsDataResponse UndoDeletePatientPatientUtilizations(UndoDeletePatientUtilizationsDataRequest request)
 {
     throw new NotImplementedException();
 }