예제 #1
0
 public JArray GetRole()
 {
     try
     {
         IList <Roles> objRoles = new List <Roles>();
         objRoles = _roles.GetAllData();
         return(JArray.Parse(objRoles.ToJson(new JsonWriterSettings {
             OutputMode = JsonOutputMode.Strict
         })));
     }
     catch (Exception)
     {
         throw;
     }
 }