Ejemplo n.º 1
0
        public ActionResult Reset(int DockingID, int LocationID)
        {
            int UserID = GetLoggedInUID();


            Location loc  = _repo.GetLocation(LocationID);
            Docking  dock = _repo.GetDockingByID(DockingID);


            bool rslt = false;

            if (dock.IsActive == true && loc.IsOcuppied == true)
            {
                loc.IsOcuppied = false;
                loc.LastUpdate = DateTime.Now.ConvertToEST();

                dock.IsActive     = false;
                dock.LastUpdate   = DateTime.Now.ConvertToEST();
                dock.LastUpdateBy = UserID;

                rslt = _repo.UpdateLocationDock(loc, dock);
            }

            return(Json(Url.Action("GetTimerList", "Admin")));
        }