Exemplo n.º 1
0
 public HttpStatusCodeResult DeleteCampaignsFromCategory(int idCamp, int idCateg)
 {
     if (!_campService.DeleteCampaignFromCategoryById(idCamp, idCateg))
     {
         //Services.Notifier.Add(Orchard.UI.Notify.NotifyType.Information, T("The Campaign has been deleted from this category."));
         return(new HttpStatusCodeResult(HttpStatusCode.ExpectationFailed));
     }
     //else
     //{
     //    Services.Notifier.Add(Orchard.UI.Notify.NotifyType.Error, T("Can not delete campaign from category. Try again late!"));
     //}
     return(new HttpStatusCodeResult(HttpStatusCode.OK));
 }