public AdminSolutionVM AddSolution(AdminSolutionVM solution, int id)
 {
     Solution model = new Solution()
     {
         ProjectID = id,
         DateDeleted = null,
         SolutionID = solution.SolutionID,
         SolutionName = solution.SolutionName,
         StartDate = solution.StartDate,
         TargetCompletionDate = solution.TargetCompletionDate,
         Urgency = solution.Urgency
     };
     using (ApplicationDbContext db = new ApplicationDbContext())
     {
         db.Solutions.Add(model);
         db.SaveChanges();
     }
     return solution;
 }
 public AdminSolutionVM AddSolution(int id, AdminSolutionVM solution)
 {
     Project project;
     Solution newSolution = new Solution()
     {
         SolutionName = solution.SolutionName,
         StartDate = solution.StartDate,
         Urgency = solution.Urgency,
         TargetCompletionDate = solution.TargetCompletionDate
     };
     using (ApplicationDbContext db = new ApplicationDbContext())
     {
         project = db.Projects.FirstOrDefault(x => x.ProjectID == id);
         project.Solutions.Add(newSolution);
         db.SaveChanges();
     }
     return solution;
 }