Exemplo n.º 1
0
 // GET: Movements/Delete
 public async Task <ActionResult> Delete(int?Id)
 {
     try
     {
         return(View(await _service.GetById(Id.GetValueOrDefault())));
     }
     catch (NotFoundException e)
     {
         TempData["ErrorMessage"] = e.Message;
         return(new HttpStatusCodeResult(HttpStatusCode.NotFound, e.Message));
     }
 }