public List <DetailsList> GetDetailsLists() { try { List <DetailsList> detailsList = new List <DetailsList>(); List <ClinicDTO> clinicList = new ClinicDSL(mapper).GetAllLite(); detailsList.Add(new DetailsList() { DetailsListId = (int)DetailsListEnum.Clinic, List = clinicList }); List <PatientDTO> patientList = new PatientDSL(mapper).GetAllLite(); detailsList.Add(new DetailsList() { DetailsListId = (int)DetailsListEnum.Patient, List = patientList }); List <UserDTO> userList = new UserDSL(mapper).GetAllDoctorsLite(); detailsList.Add(new DetailsList() { DetailsListId = (int)DetailsListEnum.User, List = userList }); List <AppointmentCategoryDTO> catList = new AppointmentCategoryDSL(mapper).GetAllLite(); detailsList.Add(new DetailsList() { DetailsListId = (int)DetailsListEnum.AppointmentCategory, List = catList }); List <AppointmentAdditionDTO> additionList = new AppointmentAdditionDSL(mapper).GetAllLite(); detailsList.Add(new DetailsList() { DetailsListId = (int)DetailsListEnum.AppointmentAddition, List = additionList }); return(detailsList); } catch (Exception e) { throw e; } }
public PatientController(IMapper _mapper) { patientDSL = new PatientDSL(_mapper); }