public ActionResult CreateOEM(CreateOEM CreateOEM) { var manufacturer = ConvertToEntityOEM(CreateOEM); _adminServices.AddOEM(manufacturer); return(RedirectToAction("index", "Home", null)); }
private Manufacturer ConvertToEntityOEM(CreateOEM createOEM) { return(new Manufacturer() { Country = createOEM.Country, Name = createOEM.Name }); }