예제 #1
0
        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());
            }
        }