public void PostProblem(string id) { Problem problem = new Problem { problem = id }; ProblemRepository problemRepository = new ProblemRepository(Startup.connectionString); problemRepository.Create(problem); }
public Problem Create(Problem problem) { return(_repo.Create(problem)); }