public ActionResult Edit(Guid?id) { try { ComponentTypeDTO componentTypeDTO = ComponentTypeService.Get(id); ComponentTypeVM componentTypeVM = Mapper.Map <ComponentTypeVM>(componentTypeDTO); return(View(componentTypeVM)); } catch (ArgumentNullException) { return(new HttpStatusCodeResult(HttpStatusCode.BadGateway)); } catch (NotFoundException) { return(HttpNotFound()); } }