Пример #1
0
        public IActionResult Delete(int id)
        {
            var test = _testService.Delete(id);

            if (test == null)
            {
                return(NotFound());
            }

            return(Ok(test));
        }
Пример #2
0
 public IActionResult Delete(int id)
 {
     return(Ok(_testService.Delete(id)));
 }
Пример #3
0
        public IHttpActionResult Delete(int id)
        {
            var result = _TestService.Delete(id);

            return(ApiHelper.ReturnHttpAction(result, this));
        }