public static void updatedescription(string descp) { if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin")) { myDAL obj = new myDAL(); obj.updatedescription(id, descp); } }