public static int addroom(string price, string descp, string type, string name) { try { if (HttpContext.Current.Session["Type"].ToString().ToLower().Equals("admin")) { myDAL obj = new myDAL(); return(obj.addroom(price, descp, type, name)); } else { return(-1); } } catch { return(-1); } }