public ActionResult getAll() { try { List <Stores> stores = _storesService.GetAll().ToList(); return(Ok(stores)); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult getAll() { try { List <Stores> stores = _storesService.GetAll().ToList(); return(Ok(stores)); } catch (Exception e) { return(BadRequest(e.Message)); } }