Ejemplo n.º 1
0
        public ActionResult DeleteConfirmed(long id)
        {
            TaxesPost taxes = _taxesService.GetPost(id);

            taxes.UserName = User.Identity.Name;
            _taxesService.Delete(taxes);
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
 public IHttpActionResult Delete(List <string> ids)
 {
     return(Ok(_service.Delete(ids)));
 }
Ejemplo n.º 3
0
        public async Task <IActionResult> Delete([FromRoute] Guid id)
        {
            await _taxesService.Delete(id);

            return(new NoContentResult());
        }