public IActionResult Delete(int id) { var test = _testService.Delete(id); if (test == null) { return(NotFound()); } return(Ok(test)); }
public IActionResult Delete(int id) { return(Ok(_testService.Delete(id))); }
public IHttpActionResult Delete(int id) { var result = _TestService.Delete(id); return(ApiHelper.ReturnHttpAction(result, this)); }