public UndoDeletePatientToDosDataResponse UndoDeleteToDos(UndoDeletePatientToDosDataRequest request) { UndoDeletePatientToDosDataResponse response = new UndoDeletePatientToDosDataResponse(); try { ISchedulingRepository repo = Factory.GetRepository(request, RepositoryType.ToDo); if (request.Ids != null && request.Ids.Count > 0) { request.Ids.ForEach(u => { request.ToDoId = u; repo.UndoDelete(request); }); } response.Success = true; return(response); } catch (Exception ex) { throw ex; } }