예제 #1
0
 public void DeleteUserCheck(as_userChecks item)
 {
     try
     {
         RDL.CacheManager.PurgeCacheItems("as_userCheck_" + item.id);
         db.DeleteUserCheck(item.id);
     }
     catch (Exception ex)
     {
         RDL.Debug.LogError(ex);
     }
 }
예제 #2
0
        public as_userChecks AddUserCheck(string username, bool isClosed, string note, System.DateTime modifiedDate, int itemID)
        {
            var res = new as_userChecks();

            try
            {
                res = new as_userChecks {
                    id = 0, username = username, isClosed = isClosed, note = note, modifiedDate = modifiedDate, itemID = itemID
                };
                db.SaveUserCheck(res);
            }
            catch (Exception ex) { }
            return(res);
        }