public ActionResult ProblemSolutionPartialView(int? id=1)
 {
     Problems probSol = new Problems();
     //Get By Id
     if (id != null)
     {
         probSol = ProblemsRepository.ProblemRepository.GetByID(id);
         probSol.EnterDate = DateTime.Now;
         //@ViewBag.PostDate = probSol.PostDate.ToString("D");
         @ViewBag.CodeSnippet = DisplayCodeSnippet(probSol.SolutionUrl);
     }
     return PartialView(probSol);
 }
 public ViewResult ProblemsForm(Problems dataStructProb)
 {
     ProblemsRepository.ProblemRepository.insert(dataStructProb); //myDbContext.Problems.Add(dataStructProb);
     ProblemsRepository.ProblemRepository.save(); //myDbContext.SaveChanges();
     return View(dataStructProb);
 }