public ActionResult AddPart(PartViewModel part, int categoryId) { part.CategoryId = categoryId; _productService.SavePart(part.MapTo(new Domain.Model.Part())); return(RedirectToAction("Index")); }