Beispiel #1
0
        public async Task <int> CreateAsync(CategoryCreateDto model)
        {
            model.CheckArgumentIsNull();
            var entity = _factory.Make(model);
            await _repo.AddAndSaveAsync(entity);

            return(entity.Id);
        }