コード例 #1
0
        public IActionResult Get(int id)
        {
            //check if ribbon exist
            var ribbon = _ribbonRepo.GetById(id);

            if (ribbon == null)
            {
                return(BadRequest());
            }
            ;

            return(Ok(_snagRepo.GetByRibbon(id)));
        }
コード例 #2
0
 public IActionResult Get(int id)
 {
     return(Ok(_snagRepo.GetByRibbon(id)));
 }