public EmployeeController(IEmployeeService employeeService,
                           IPersonService personService,
                           IBusinessEntityAddressService businessEntityAddressService,
                           IBusinessEntityContactService businessEntityContactService,
                           IPhoneService phoneService,
                           IAddressService addressService,
                           IAddressTypeService addressTypeService,
                           IPhoneTypeService phoneTypeService,
                           IContactTypeService contactTypeService,
                           IBusinessEntityService businessEntityService,
                           IUnitOfWorkAsync unitOfWork)
 {
     this.businessEntityService        = businessEntityService;
     this.employeeService              = employeeService;
     this.unitOfWork                   = unitOfWork;
     this.addressService               = addressService;
     this.personService                = personService;
     this.businessEntityContactService = businessEntityContactService;
     this.businessEntityAddressService = businessEntityAddressService;
     this.personService                = personService;
     this.phoneService                 = phoneService;
     this.addressTypeService           = addressTypeService;
     this.phoneTypeService             = phoneTypeService;
     this.contactTypeService           = contactTypeService;
 }
예제 #2
0
 public ReservationsController(IReservationService reservationService, IContactService contactService,
                               IContactTypeService contactTypeService)
 {
     this._reservationService = reservationService;
     this._contactService     = contactService;
     this._contactTypeService = contactTypeService;
 }
예제 #3
0
 public ContactType VName(ContactType contacttype, IContactTypeService _contacttypeService)
 {
     if (String.IsNullOrEmpty(contacttype.Name) || contacttype.Name.Trim() == "")
     {
         contacttype.Errors.Add("Name", "Tidak boleh kosong");
     }
     return(contacttype);
 }
예제 #4
0
 public ContactType VUpdateObject(ContactType contacttype, IContactTypeService _contacttypeService)
 {
     VName(contacttype, _contacttypeService);
     if (!isValid(contacttype))
     {
         return(contacttype);
     }
     return(contacttype);
 }
 public AbstractContactTypeController(
     ApiSettings settings,
     ILogger <AbstractContactTypeController> logger,
     ITransactionCoordinator transactionCoordinator,
     IContactTypeService contactTypeService,
     IApiContactTypeModelMapper contactTypeModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.ContactTypeService     = contactTypeService;
     this.ContactTypeModelMapper = contactTypeModelMapper;
 }
예제 #6
0
 public EmployeeApiController(IEmployeeService EmployeeService,
                              IContactTypeService ContactTypeService,
                              ITagService TagService,
                              IEmployeeContactTypesService EmployeeContactTypesService,
                              IEmployeeHistoryService EmployeeHistoryService,
                              IEmployeeTagsService EmployeeTagsService
                              )
 {
     _EmployeeService             = EmployeeService;
     _ContactTypeService          = ContactTypeService;
     _TagService                  = TagService;
     _EmployeeContactTypesService = EmployeeContactTypesService;
     _EmployeeHistoryService      = EmployeeHistoryService;
     _EmployeeTagsService         = EmployeeTagsService;
 }
예제 #7
0
 public MainWindowVM()
 {
     this._user               = new User();
     this._users              = new ObservableCollection <User>();
     this._contactTypes       = new ObservableCollection <ContactType>();
     this._logs               = new ObservableCollection <Log>();
     this._groups             = new ObservableCollection <Group>();
     this._favorites          = new ObservableCollection <Favorite>();
     this._groupService       = new GroupService();
     this._favoritesService   = new FavoritesService();
     this._contactService     = new ContactService();
     this._userService        = new UserService();
     this._contactTypeService = new ContactTypeService();
     this._logService         = new LogService();
 }
예제 #8
0
 public ContactTypeController(
     ApiSettings settings,
     ILogger <ContactTypeController> logger,
     ITransactionCoordinator transactionCoordinator,
     IContactTypeService contactTypeService,
     IApiContactTypeModelMapper contactTypeModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            contactTypeService,
            contactTypeModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
예제 #9
0
        public ContactsPlayerRegisterViewModel(INavigation navigation, IRequestService requestService, Player player)
        {
            _navigation     = navigation;
            _requestService = requestService;
            Player          = player;
            if (AppSettings.ApiStatus)
            {
                _contactTypeService = new ContactTypeService(requestService);
                _playerService      = new PlayerService(requestService);
            }
            else
            {
                _contactTypeService = new FakeContactTypeService();
                _playerService      = new FakePlayerService();
            }
            Contacts     = new ObservableCollection <Contact>();
            ContactTypes = new ObservableCollection <ContactType>();

            Task.Run(async() =>
            {
                await LoadContactTypes();
                await LoadContacts();
            });
        }
        public ContactsTeamRegisterViewModel(INavigation navigation, IRequestService requestService, Team team)
        {
            _navigation     = navigation;
            _requestService = requestService;
            Team            = team;
            if (AppSettings.ApiStatus)
            {
                _contactTypeService = new ContactTypeService(requestService);
                _teamService        = new TeamService(requestService);
            }
            else
            {
                _contactTypeService = new FakeContactTypeService();
                _teamService        = new FakeTeamService();
            }
            Contacts     = new ObservableCollection <Contact>();
            ContactTypes = new ObservableCollection <ContactType>();

            Task.Run(async() =>
            {
                await LoadContactTypes();
                await LoadContacts();
            });
        }
예제 #11
0
 public ContactTypeController(IContactTypeService contactTypeService, IMapper mapper)
 {
     this._contactTypeService = contactTypeService;
     this._mapper             = mapper;
 }
예제 #12
0
 public ContactTypesController(IContactTypeService service)
 {
     _service = service;
 }
예제 #13
0
 public ContactTypeController(IContactTypeService addressTypeService)
 {
     _addressTypeService = addressTypeService;
 }
 public ContactTypeApplication(IContactTypeService services) : base(services)
 {
     _services = services;
 }
 public ContactTypeController(IContactTypeService contactTypeService) =>
예제 #16
0
 public ContactsController(IContactService contactService, IContactTypeService contactTypeService)
 {
     this._contactService     = contactService;
     this._contactTypeService = contactTypeService;
 }