Example #1
0
        public void PostProblem(string id)
        {
            Problem problem = new Problem {
                problem = id
            };
            ProblemRepository problemRepository = new ProblemRepository(Startup.connectionString);

            problemRepository.Create(problem);
        }
Example #2
0
 public Problem Create(Problem problem)
 {
     return(_repo.Create(problem));
 }