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