Beispiel #1
0
        public ActionResult RemoveStationUserLink(long userId, long stationId, long?primaryUserId)
        {
            try
            {
                CRCDataAccess.RemoveUserStationLink(userId, stationId);
            }
            catch (EntitySqlException e)
            {
                Console.Write(e);
            }


            if (primaryUserId.HasValue)
            {
                if (userId == primaryUserId)
                {
                    CRCDataAccess.UpdatePrimaryUserStatus(stationId);
                }
            }
            return(Empty());
        }