コード例 #1
0
        public IActionResult GetAll(int id)
        {
            var result = _allergyService.GetAll();

            if (!result.IsSuccess)
            {
                return(BadRequest(result));
            }
            return(Ok(result));
        }
コード例 #2
0
 public ActionResult Get()
 {
     return(Ok(
                allergyService.GetAll()
                ));
 }