public ActionResult Search(RoleOrganizationViewModels model)
 {
     try
     {
         var data = _ROfactory.GetData(CurrentUser.ListOrganizationId[0]);
         foreach (var item in data)
         {
             item.OrganizationName = CurrentUser.OrganizationName;
             var listRoS = _RoSfactory.GetData(item.Id, lstStore);
             if (listRoS != null)
             {
                 listRoS = listRoS.Where(o => !string.IsNullOrEmpty(o.StoreName)).OrderBy(o => o.StoreName).ToList();
                 item.RO = string.Join("<br/>", listRoS.Where(z => z.IsActive).Select(x => x.StoreName).ToList());
             }
             else
             {
                 item.RO = "None";
             }
         }
         model.ListItem = data;
     }
     catch (Exception e)
     {
         _logger.Error("G_Role_Search: " + e);
         return(new HttpStatusCodeResult(400, e.Message));
     }
     return(PartialView("_ListData", model));
 }
 public ActionResult Index()
 {
     try
     {
         RoleOrganizationViewModels model = new RoleOrganizationViewModels();
         return(View(model));
     }
     catch (Exception ex)
     {
         _logger.Error("G_Role_Index: " + ex);
         return(new HttpStatusCodeResult(400, ex.Message));
     }
 }