//public static IMapper Mapper {get; private set;} #endregion #region Constructor /// <summary> /// Create a new instance of Nt_Grp_Cant application service /// </summary> /// <param name="repository">Repository dependency</param> public Nt_Grp_CantAppService(INt_Grp_CantRepository repository) { if (repository == null) { throw new ArgumentNullException("repository", ApplicationResources.exception_WithoutRepository); } _repositoryNt_Grp_Cant = repository; }
/// <summary> /// Create a new instance of Nt_Grp_Cant application service /// </summary> /// <param name="repository">Repository dependency</param> /// <param name="uow">IUnitOfWorkAsync dependency</param> public Nt_Grp_CantAppService(INt_Grp_CantRepository repository, IUnitOfWorkAsync uow) { if (repository == null) { throw new ArgumentNullException("repository", ApplicationResources.exception_WithoutRepository); } _repositoryNt_Grp_Cant = repository; if (uow == null) { throw new ArgumentNullException("uow", ApplicationResources.exception_WithoutRepository); } _unitOfWorkAsync = uow; }