private void FrmMenu_Load(object sender, EventArgs e) { if (Session.Intance.CurrentSession != null) { this.toolStripLabelUsuario.Text = String.Format("Bienvenido {0} {1}", Session.Intance.CurrentSession.Nombres, Session.Intance.CurrentSession.Apellidos); using (RolService _service = new RolService()) { this.toolStripLabelRol.Text = String.Format("Rol {0}", _service.GetRol(Session.Intance.CurrentSession.IdRol).Descripcion); Security(Session.Intance.CurrentSession.IdRol); } } }
public IHttpActionResult GetRoll(int id) { RolService con = new RolService(); return(Ok(con.GetRol(id))); }