public IActionResult Delete(int id) { if (!ModelState.IsValid) { return(new BadRequestObjectResult(ModelState)); } _directionService.Delete(id); _directionService.Save(); return(new OkObjectResult(id)); }
public IHttpActionResult Delete(List <string> ids) { return(Ok(_service.Delete(ids))); }