public ExecuteResultEntity <MainWindowEntity> Index() { try { ExecuteResultEntity <MainWindowEntity> main_model = ExecuteResultEntity <MainWindowEntity> .CreateResultEntity(new MainWindowEntity()); main_model.Result.LoginedUser = GetCurrentLoginUser(); main_model.Result.Projects = ExecuteResultEntity <ICollection <Projects> > .CreateResultEntity(new Collection <Projects>(ProjectRepository.Where(w => w.Void == false).ToList())); main_model.Result.Manufacturers = ExecuteResultEntity <ICollection <Manufacturers> > .CreateResultEntity(new Collection <Manufacturers>(ManufacturerRepository.Where(w => w.Void == false && w.IsClient == false).ToList())); main_model.Result.Clients = ExecuteResultEntity <ICollection <Manufacturers> > .CreateResultEntity(new Collection <Manufacturers>(ManufacturerRepository.Where(w => w.Void == false && w.IsClient == true).ToList())); return(main_model); } catch (Exception ex) { return(ExecuteResultEntity <MainWindowEntity> .CreateErrorResultEntity(ex)); } }