public ActionResult Edit([Bind(Include = "Id, Name, Address, Phone, Email, Fax")] ExecutorCompanyVM executorCompanyVM)
 {
     if (ModelState.IsValid)
     {
         ExecutorCompanyDTO executorCompanyDTO = Mapper.Map <ExecutorCompanyDTO>(executorCompanyVM);
         _executorCompanyService.Update(executorCompanyDTO);
         return(RedirectToAction("Index"));
     }
     return(View(executorCompanyVM));
 }
 public ActionResult Edit(Guid?id)
 {
     try
     {
         ExecutorCompanyDTO executorCompanyDTO = _executorCompanyService.Get(id);
         ExecutorCompanyVM  executorCompanyVM  = Mapper.Map <ExecutorCompanyVM>(executorCompanyDTO);
         return(View(executorCompanyVM));
     }
     catch (ArgumentNullException)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     catch (NotFoundException)
     {
         return(HttpNotFound());
     }
 }