public async Task <ActionResult> CreateUser([FromBody] CreateUserRequest request) { var user = AutoMapperUtility <CreateUserRequest, User> .GetMappedObject(request, mapper); await this.userServices.CreateUser(user); return(Ok()); }
public BaseService(IBaseRepository <TEntity, TKey, TFilter> baseRepository , AutoMapperUtility mapperUtility, IUnitOfWork unitOfWork) { this.BaseRepository = baseRepository; MapperUtility = mapperUtility; UnitOfWork = unitOfWork; MapperUtility = mapperUtility; }
public RecipeRepositoryTest() : base() { var mapper = AutoMapperUtility.GetConfiguration(); _recipeRepository = new RecipeRepository(_context, mapper); }
public GroceryItemRepositoryTest() : base() { var mapper = AutoMapperUtility.GetConfiguration(); _groceryItemRepository = new GroceryItemRepository(_context, mapper); }