Пример #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            TaxesPost taxes = _taxesService.GetPost(id);

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

            return(new NoContentResult());
        }