public ActionResult <LaundryStatus> GetCycleStatus(int laundryRunId)
        {
            var lr = new LaundryRepository(_context);

            return(lr.GetLaundryRunStatusByLaundryRunId(laundryRunId));
        }
        public ActionResult <LaundryStatus> GetUnitStatus(int unitId)
        {
            var lr = new LaundryRepository(_context);

            return(lr.GetUnitStatus(unitId));
        }
        public ActionResult <LaundryRuns> GetCycle(int laundryRunId)
        {
            var lr = new LaundryRepository(_context);

            return(lr.GetLaundryRun(laundryRunId));
        }
        public ActionResult <List <LaundryRuns> > GetAllCycles()
        {
            var lr = new LaundryRepository(_context);

            return(lr.GetAllLaundryRuns());
        }
        public ActionResult <int> CreateUnit(Unit unit)
        {
            var lr = new LaundryRepository(_context);

            return(lr.CreateUnit(unit));
        }
        public ActionResult <List <UnitType> > UnitType()
        {
            var lr = new LaundryRepository(_context);

            return(lr.GetAllUnitTypes());
        }
        public ActionResult <int> CycleEnd(int unitId)
        {
            var lr = new LaundryRepository(_context);

            return(lr.EndCycle(unitId));
        }