Пример #1
0
 public ActionResult DeleteStaticShoppingList(string id)
 {
     try
     {
         AgenteShoppingList agente =
             new AgenteShoppingList();
         string userName = null;
         if (Request.IsAuthenticated)
         {
             userName = User.Identity.Name;
         }
         agente.DeleteStaticShoppingList(id, userName);
         return(GetShoppingListsByListPublicID(EstadoUsuario.CurrentListPublicId));
     }
     catch (Exception ex)
     {
         return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest, "The static list doesnt exist or you don't have the right to delete it."));
     }
 }