public ActionResult AddType(NewType newType) { var newTypeSuccess = _repository.AddType(newType); return(Created("api/producttype", newTypeSuccess)); }