public ActionResult DeleteConfirmed(long id) { TaxesPost taxes = _taxesService.GetPost(id); taxes.UserName = User.Identity.Name; _taxesService.Delete(taxes); return(RedirectToAction("Index")); }
public IHttpActionResult Delete(List <string> ids) { return(Ok(_service.Delete(ids))); }
public async Task <IActionResult> Delete([FromRoute] Guid id) { await _taxesService.Delete(id); return(new NoContentResult()); }