public static string RemUnidade(string cod) { try { DAO dao = new DAO(); int rtn = dao.RemUnidade(cod, Convert.ToInt32(HttpContext.Current.Session["idUsuario"])); if (rtn > 0) return "True"; else if (rtn == -1) return "False1"; else return "False2"; } catch (Exception ex) { return ex.Message; } }