public static string SalvarSetor(string id, string nome) { try { DAO dao = new DAO(); if (dao.AddEdtSetor(new Setor() { idUser = Convert.ToInt32(HttpContext.Current.Session["idUsuario"]), Descricao = nome, Id_Setor = Convert.ToInt32(id) })) { return "True"; } else { return "False"; } } catch (Exception ex) { return ex.Message; } }