public async Task <IActionResult> Edit(ModelTypeBindingModel model) { var serviceModel = Mapper.Map <ModelTypeServiceModel>(model); await this.modelTypesService.EditAsync(serviceModel); return(RedirectToAction("Index")); }
public IActionResult AddNew() { var model = new ModelTypeBindingModel(); return(View(model)); }