public ContactController(IContactService contactService, IContactValidation contactValidation, ILogger <Contact> logger, IHttpContextAccessor httpContextAccessor) : base(contactService, contactValidation, logger, httpContextAccessor, "contact") { }
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; }
public ContactService(IContactRepository _contactRepository, IContactValidation _contactValidation) { _repository = _contactRepository; _validator = _contactValidation; }