// GetOrderById public async Task <OrderModel> GetOrderById(int orderId) { var records = await _db.LoadData <OrderModel, dynamic>("dbo.spOrders_GetById", new { Id = orderId }, _connectionString.ConnectionStringName); return(records.FirstOrDefault()); }
// GetFood public async Task <List <FoodModel> > GetFood() { return(await _db.LoadData <FoodModel, dynamic>("dbo.spFood_All", new { }, _connectionString.ConnectionStringName)); }