// Get  Task Status
        public async Task <IActionResult> ProjectTask(ReportVM report)
        {
            var seedtask = new SeededTasks();

            if (report.ProjectId == null)
            {
                seedtask.tasks = adamUnit.TaskRepository.GetAll().Select(x => x.ToModel()).ToList();
                seedtask.Seed  = null;
                return(new ViewAsPdf("TaskList", seedtask));
            }
            seedtask.tasks = adamUnit.TaskRepository
                             .GetAll(x => x.StartDate >= report.StartDate && x.EndDate <= report.EndDate && x.ProjectId == report.ProjectId).Select(x => x.ToModel()).ToList();
            seedtask.Seed = null;
            return(new ViewAsPdf("TaskList", seedtask));
        }
        // Get Employee Task
        public async Task <IActionResult> EmployeeTask(ReportVM report)
        {
            var seedtask = new SeededTasks();

            if (report.Development == null && report.StartDate == null && report.EndDate == null)
            {
                seedtask.tasks = adamUnit.TaskRepository.GetAll().Select(x => x.ToModel()).ToList();
                seedtask.Seed  = null;
                return(new ViewAsPdf("TaskList", seedtask));
            }
            else if (report.StartDate == null && report.EndDate == null)
            {
                seedtask.tasks = adamUnit.TaskRepository
                                 .GetAll(x => x.Development == report.Development).Select(x => x.ToModel()).ToList();
                seedtask.Seed = null;
                return(new ViewAsPdf("TaskList", seedtask));
            }
            seedtask.tasks = adamUnit.TaskRepository
                             .GetAll(x => x.StartDate >= report.StartDate && x.EndDate <= report.EndDate && x.Development == report.Development).Select(x => x.ToModel()).ToList();
            seedtask.Seed = null;
            return(new ViewAsPdf("TaskList", seedtask));
        }