Пример #1
0
 public IActionResult Get()
 {
     try
     {
         return(Ok(_setService.GetAll().ToApiModels()));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("GetSet", ex.StackTrace);
         return(BadRequest(ModelState));
     }
 }
Пример #2
0
        public IActionResult GetAll()
        {
            var Sets = _setService.GetAll();

            return(Ok(Sets));
        }