public IActionResult DeleteTax(int taxId) { var tax = taxId > 0 ? _taxService.Get(taxId) : null; if (tax == null) { return(NotFound()); } _taxService.Delete(tax); return(R.Success.Result); }
public ActionResult DeleteConfirmed(Guid id) { taxService.Delete(id); return(RedirectToAction("Index")); }
public static void Delete(string id) { service.Delete(id, AuthenticationHelper.CompanyId.Value); }