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