public ActionResult Create(CreateItemViewModel viewModel, CreateItemModel model) { model.AddItem(viewModel); return RedirectToAction("Index"); }
public void AddItem(CreateItemViewModel viewModel) { _itemService.Add(new ItemDto{Name=viewModel.Name, Description = viewModel.Description}); }