public async Task <ActionResult> CreateUser([FromBody] CreateUserRequest request)
        {
            var user = AutoMapperUtility <CreateUserRequest, User> .GetMappedObject(request, mapper);

            await this.userServices.CreateUser(user);

            return(Ok());
        }
Ejemplo n.º 2
0
 public BaseService(IBaseRepository <TEntity, TKey, TFilter> baseRepository
                    , AutoMapperUtility mapperUtility, IUnitOfWork unitOfWork)
 {
     this.BaseRepository = baseRepository;
     MapperUtility       = mapperUtility;
     UnitOfWork          = unitOfWork;
     MapperUtility       = mapperUtility;
 }
Ejemplo n.º 3
0
        public RecipeRepositoryTest() : base()
        {
            var mapper = AutoMapperUtility.GetConfiguration();

            _recipeRepository = new RecipeRepository(_context, mapper);
        }
        public GroceryItemRepositoryTest() : base()
        {
            var mapper = AutoMapperUtility.GetConfiguration();

            _groceryItemRepository = new GroceryItemRepository(_context, mapper);
        }