public static List <Button> GetAllButtonsByPageURLnUserID(string pageURL, int loginID) { List <Button> buttons = new List <Button>(); SqlButtonProvider sqlButtonProvider = new SqlButtonProvider(); buttons = sqlButtonProvider.GetAllButtonsByPageURLnUserID(pageURL, loginID); return(buttons); }
public static List<Button> GetAllButtonsByPageURLnUserID(string pageURL,int loginID) { pageURL = pageURL.Split('/')[pageURL.Split('/').Length - 1].Contains('?') ? pageURL.Split('/')[pageURL.Split('/').Length - 1].Split('?')[0] : pageURL.Split('/')[pageURL.Split('/').Length - 1]; List<Button> buttons = new List<Button>(); SqlButtonProvider sqlButtonProvider = new SqlButtonProvider(); buttons = sqlButtonProvider.GetAllButtonsByPageURLnUserID(pageURL,loginID); return buttons; }
public static List <Button> GetAllButtonsByPageURLnUserID(string pageURL, int loginID) { pageURL = pageURL.Split('/')[pageURL.Split('/').Length - 1].Contains('?') ? pageURL.Split('/')[pageURL.Split('/').Length - 1].Split('?')[0] : pageURL.Split('/')[pageURL.Split('/').Length - 1]; List <Button> buttons = new List <Button>(); SqlButtonProvider sqlButtonProvider = new SqlButtonProvider(); buttons = sqlButtonProvider.GetAllButtonsByPageURLnUserID(pageURL, loginID); return(buttons); }