Exemplo n.º 1
0
        public bool Add(string userName, string pageName, string pageUrl)
        {
            APP_RECENT_PAGES appRP = dal.GetSpecifyRecentPage(userName, pageName);

            if (appRP == null)
            {
                appRP = new APP_RECENT_PAGES()
                {
                    APP_USER      = userName,
                    PAGE_NAME     = pageName,
                    PAGE_URL      = pageUrl,
                    LAST_ACTIVITY = DateTime.Now
                };
                this.Add(appRP);
            }
            else
            {
                appRP.LAST_ACTIVITY = DateTime.Now;
                this.Update(appRP);
            }
            return(true);
        }
Exemplo n.º 2
0
 public bool Update(APP_RECENT_PAGES model)
 {
     dal.Update(model);
     return(true);
 }
Exemplo n.º 3
0
 public bool Add(APP_RECENT_PAGES model)
 {
     dal.Add(model);
     return(true);
 }