Пример #1
0
 public virtual async Task <ActionResult> Delete(int[] keys)
 {
     try
     {
         foreach (var key in keys)
         {
             await _taxesService.DeleteAsync(key);
         }
         return(Content("OK"));
     }
     catch (Exception e)
     {
         var errorCode = ErrorLog.GetDefault(System.Web.HttpContext.Current).Log(new Error(e, System.Web.HttpContext.Current));
         return(Content(string.Format(_localizationService.GetResource("ErrorOnOperation"), e.Message, errorCode)));
     }
 }
Пример #2
0
 public async Task <ActionResult <TaxesItem> > DeleteTaxesItem(int id)
 {
     return(await _businessService.DeleteAsync(id));
 }