Beispiel #1
0
        public static bool ValidateApplicationDeviceInfo(int repId, int coId, iTraycerDeviceInfo itd, int launchCount)
        {
            DataTable devAppTable = DataLayer.Controller.GetiTraycerApplicationDeviceInfoDevId(itd.DeviceId);

            if (devAppTable.Rows.Count == 1)
            {
                if (DataLayer.Controller.UpdateiTraycerApplicationLaunchCount(repId, coId, itd.DeviceId, launchCount) > 0)
                    return true;
            }
            else
            {
                iTraycerSection.Session.Session.errorMessage = "SRVERROR:Fail to update launch count";
            }
            return false;
        }
Beispiel #2
0
 public static bool AddDeviceInfo(iTraycerDeviceInfo itd)
 {
     return DataLayer.Controller.InsertiTraycerDeviceInfo(itd) == 1;
 }