Exemple #1
0
 public string Remove(int id)
 {
     logger.Info("DELETE Remove: ");
     try
     {
         if (context.DeleteNews(id))
         {
             return("success");
         }
         else
         {
             return("error");
         }
     }
     catch (Exception ex)
     {
         logger.Error("Error in Remove News " + ex.Message);
         return("error");
     }
 }