コード例 #1
0
ファイル: BusController.cs プロジェクト: instkoff/MiniBusCrm
        public ActionResult <List <BusModel> > GetAll()
        {
            var collection = _busService.GetAll();

            if (collection == null)
            {
                return(BadRequest("Buses not found"));
            }

            return(Ok(collection));
        }
コード例 #2
0
 public ActionResult GetAll() => _busService.GetAll();
コード例 #3
0
        public IHttpActionResult Get()
        {
            var buses = _busService.GetAll();

            return(Ok(buses));
        }