public IActionResult Index()
        {
            var projects = projectService_.SearchProjects(new SearchProjectOptions()).Data
                           .ToList();


            /* All About Angel Investors */

            var clients = clientService_.SearchClient(new SearchClientOptions()).Data
                          .Include(x => x.InvestedProjects).SelectMany(x => x.InvestedProjects
                                                                       .OrderByDescending(y => y.InvestedAmount).Take(1), (x, y) => new { x, y })
                          .OrderByDescending(z => z.y.InvestedAmount).Select(x => x.y).Take(3).ToList();

            var Angels = new List <Client>();

            foreach (var item in clients)
            {
                var AngelClients = clientService_.SearchClient(new SearchClientOptions()
                {
                    ClientId = item.ClientId
                }).Data.Include(x => x.InvestedProjects).SingleOrDefault();
                Angels.Add(AngelClients);
            }

            var projectList = new CfModel()
            {
                Projects = projects,
                Client   = Angels
            };

            return(View(projectList));
        }
        public IActionResult Client()
        {
            var clients = clientService_.SearchClient(new SearchClientOptions()).Data
                          .Include(c => c.Projects)
                          .Include(c => c.InvestedProjects)
                          .ToList();

            var cflist = new CfModel()
            {
                Client = clients
            };

            return(View(cflist));
        }
        public IActionResult SearchByFilters([FromBody] SearchProjectOptions options)
        {
            var projects = projectService_
                           .SearchProjects(options)
                           .Data
                           .Include(x => x.Packages)
                           .ToList();

            var cfModel = new CfModel()
            {
                Projects = projects
            };

            return(View(cfModel));
        }
        public IActionResult Project([FromQuery] string title, [FromQuery] string description, [FromQuery] ProjectCategory?category)
        {
            var projects = projectService_
                           .SearchProjects(
                new SearchProjectOptions()
            {
                Title       = title,
                Description = description,
                Category    = category
            })
                           .Data
                           .Include(x => x.Packages)
                           .Include(y => y.Client)
                           .ToList();

            var cflist = new CfModel()
            {
                Projects = projects
            };

            return(View(cflist));
        }