public IActionResult Get(int id) { var result = _allergyService.Get(id); if (!result.IsSuccess) { return(BadRequest(result)); } return(Ok(result)); }
public ActionResult Get(int id) { return(Ok( allergyService.Get(id) )); }