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); }
public bool Update(APP_RECENT_PAGES model) { dal.Update(model); return(true); }
public bool Add(APP_RECENT_PAGES model) { dal.Add(model); return(true); }