Esempio n. 1
0
 public IActionResult Get()
 {
     try
     {
         return(Ok(_setService.GetAll().ToApiModels()));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("GetSet", ex.StackTrace);
         return(BadRequest(ModelState));
     }
 }
Esempio n. 2
0
        public IActionResult GetAll()
        {
            var Sets = _setService.GetAll();

            return(Ok(Sets));
        }