Example #1
0
        public IActionResult Delete(int id)
        {
            if (!ModelState.IsValid)
            {
                return(new BadRequestObjectResult(ModelState));
            }

            _directionService.Delete(id);
            _directionService.Save();

            return(new OkObjectResult(id));
        }
Example #2
0
 public IHttpActionResult Delete(List <string> ids)
 {
     return(Ok(_service.Delete(ids)));
 }