示例#1
0
 public ContactController(IContactService contactService,
                          IContactValidation contactValidation,
                          ILogger <Contact> logger,
                          IHttpContextAccessor httpContextAccessor) :
     base(contactService, contactValidation, logger, httpContextAccessor, "contact")
 {
 }
示例#2
0
 public UserController([NotNull] IUserService userService,
                       IContactService contactService,
                       IContactValidation contactValidation,
                       ILogger <User> logger,
                       IMapper mapper,
                       IOptions <AppSettings> appSettings)
 {
     _userService       = userService;
     _contactService    = contactService;
     _contactValidation = contactValidation;
     _logger            = logger;
     _mapper            = mapper;
     _appSettings       = appSettings.Value;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="iContactDAL">Contact DAL Object</param>
 /// <param name="contactValidation">Contact Validation Object</param>
 public ContactBusiness(IContactDAL iContactDAL, IContactValidation contactValidation)
 {
     _iContactDAL       = iContactDAL;
     _contactValidation = contactValidation;
 }
示例#4
0
 public ContactService(IContactRepository _contactRepository, IContactValidation _contactValidation)
 {
     _repository = _contactRepository;
     _validator  = _contactValidation;
 }