public ActionResult Edit(Guid id, Category collection)
 {
     try
     {
         var response = _category.UpdateCategory(id, collection);
         var category = (Category)response.Objeto;
         if (response.Exito)
         {
             TempData["Ok"] = response.Mensagem;
         }
         else
         {
             TempData["Erro"] = response.Mensagem;
         }
         return(RedirectToAction("Details", new { id = category.IdCategory }));
     }
     catch
     {
         return(View());
     }
 }