public List <LinkDTO> Search(int projectId, int status, int linkStrategy, bool onlyMine, int categoryId, Nullable <DateTime> startDate, string endDate, bool includeNotInUse, int teamId, bool isActive) { Nullable <DateTime> modifiedEndDate = null; DateTime newEndDate; if (DateTime.TryParse(endDate, out newEndDate)) { modifiedEndDate = newEndDate.AddDays(1); } string user = Membership.GetUser().UserName; return(repo.Search(projectId, status, linkStrategy, onlyMine, user, categoryId, startDate, modifiedEndDate, includeNotInUse, teamId, isActive)); }
private async Task handleOnSearch() { TabPage tab = materialTabControl1.SelectedTab; if (tab.Text == "Link") { string search = metroTextBox1.Text.Trim(); var links = null as List <tblLink>; if (string.IsNullOrEmpty(search) || string.IsNullOrWhiteSpace(search)) { links = await rpLink.GetLinkList(UserManagement.UserSession.Type); } else { links = await rpLink.Search(search, UserManagement.UserSession.Type); } await LoadData(links); } else { await LoadImg(); } }