public static OptionTypeServiceModel Create(string id)
        {
            var model = new OptionTypeServiceModel()
            {
                Id = id
            };

            return(model);
        }
        public async void WithModel_ShoudCreateNewOptionType()
        {
            var dbContext = this.GetDbContext();
            var service   = this.GetService(dbContext);
            var model     = new OptionTypeServiceModel();

            await service.CreateNewAsync(model);

            Assert.Single(dbContext.OptionTypes);
        }
 public async Task EditAsync(OptionTypeServiceModel model)
 {
     await this.adminEditService.EditAsync <OptionType, OptionTypeServiceModel>(model, model.Id);
 }
 public async Task CreateNewAsync(OptionTypeServiceModel model)
 {
     await this.adminCreateService.CreateAsync <OptionType, OptionTypeServiceModel>(model);
 }