public JsonData Get(RoleFilter filter)
 {
     try
     {
         using (var db = new DataContext())
         {
             var data = filter.BuildQuery(db.Roles).ToList();
             return !data.Any() ? DataHelpers.ReturnJsonData(null, false, "No data Found", 0) : DataHelpers.ReturnJsonData(data, true, "Loaded successfully", data.Count());
         }
     }
     catch (Exception e)
     {
         return DataHelpers.ExceptionProcessor(e);
     }
 }
 public JsonData Get(RoleFilter filter)
 {
     return new RoleRepo().Get(filter);
 }