BL.Rol.getRolDescripcion C# (CSharp) Method

getRolDescripcion() public method

public getRolDescripcion ( long identity ) : string
identity long
return string
        public string getRolDescripcion(long identity)
        {
            try
            {
                var rolDesc = from r in entidad.roles
                              where r.id == identity
                              select r.descripcion;
                return rolDesc.First();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString() + " --Rol.cs / getRolDescripcion()");
            }
        }