Example #1
0
        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);
        }
Example #2
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     taxService.Delete(id);
     return(RedirectToAction("Index"));
 }
Example #3
0
 public static void Delete(string id)
 {
     service.Delete(id, AuthenticationHelper.CompanyId.Value);
 }