public static string getaccounts() { if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin")) { myDAL obj = new myDAL(); return(obj.getaccounts().GetXml()); } return("0"); }
public static string getaccounts(int id) { myDAL obj = new myDAL(); return(obj.getaccounts(id).GetXml()); }