コード例 #1
0
        public async Task <ActionResult> CreateUser([FromBody] CreateUserRequest request)
        {
            var user = AutoMapperUtility <CreateUserRequest, User> .GetMappedObject(request, mapper);

            await this.userServices.CreateUser(user);

            return(Ok());
        }
コード例 #2
0
ファイル: BaseService.cs プロジェクト: icast073/Invoice
 public BaseService(IBaseRepository <TEntity, TKey, TFilter> baseRepository
                    , AutoMapperUtility mapperUtility, IUnitOfWork unitOfWork)
 {
     this.BaseRepository = baseRepository;
     MapperUtility       = mapperUtility;
     UnitOfWork          = unitOfWork;
     MapperUtility       = mapperUtility;
 }
コード例 #3
0
        public RecipeRepositoryTest() : base()
        {
            var mapper = AutoMapperUtility.GetConfiguration();

            _recipeRepository = new RecipeRepository(_context, mapper);
        }
コード例 #4
0
        public GroceryItemRepositoryTest() : base()
        {
            var mapper = AutoMapperUtility.GetConfiguration();

            _groceryItemRepository = new GroceryItemRepository(_context, mapper);
        }