//------------- CONSTRUCTORS --------------
 /// <summary>
 /// Initializes a new <see cref="OperatingLocationsService"/>.
 /// </summary>
 /// <param name="dbContext">Database context</param>
 public OperatingLocationsService(ApplicationDbContext dbContext, IDepartmentsService departmentsService, IPhonesService phonesService, IEmployeesService employeesService)
 {
     this.dbContext          = dbContext;
     this.departmentsService = departmentsService;
     this.phonesService      = phonesService;
     this.employeesService   = employeesService;
 }
示例#2
0
 public DoctorsService(HealthDbContext db,
                       IAddressesService addressesService,
                       IPhonesService phonesService,
                       IEmailsService emailsService)
 {
     this.db               = db;
     this.phonesService    = phonesService;
     this.addressesService = addressesService;
     this.emailsService    = emailsService;
 }
示例#3
0
 //------------- CONSTRUCTORS --------------
 public DepartmentsController(IPhonesService phonesService, IDepartmentsService departmentsService)
 {
     this.phonesService      = phonesService;
     this.departmentsService = departmentsService;
     this.unifiedModel       = new DepartmentPhoneUnifiedModel
     {
         PhoneInputModel      = new PhoneInputModel(),
         DepartmentInputModel = new DepartmentInputModel(),
     };
 }
示例#4
0
        public PersonsService(HealthDbContext db,
                              IAddressesService addressesService,
                              IPhonesService phonesService,
                              IEmailsService emailsService,
                              IRelativesService relativesService)
        {
            this.db = db;

            this.addressesService = addressesService;
            this.phonesService    = phonesService;
            this.emailsService    = emailsService;
            this.relativesService = relativesService;
        }
示例#5
0
 public PhonesController(IPhonesService phonesSvc)
 {
     PhonesSvc = phonesSvc;
 }
 //------------- CONSTRUCTORS --------------
 public DepartmentsService(ApplicationDbContext dbContext, IPhonesService phonesService)
 {
     this.dbContext     = dbContext;
     this.phonesService = phonesService;
 }
示例#7
0
 public PhoneController(IPhonesService phonesService)
 {
     _phonesService = phonesService;
 }
示例#8
0
 //------------- CONSTRUCTORS --------------
 public PhonesController(IPhonesService phonesService)
 {
     this.phonesService = phonesService;
 }
示例#9
0
 public PhonesController(IPhonesService context, IMapper mapper)
 {
     _phonesService = context;
     _mapper        = mapper;
 }