示例#1
0
        public List <DetailsList> GetExpenseDetailsLists()
        {
            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 <UserDTO> doctorList = new UserDSL(mapper).GetAllDoctorsLite();
                detailsList.Add(new DetailsList()
                {
                    DetailsListId = (int)DetailsListEnum.User,
                    List          = doctorList
                });

                return(detailsList);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
示例#2
0
        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;
            }
        }
示例#3
0
 public UserController(IMapper _mapper)
 {
     userDSL = new UserDSL(_mapper);
 }