private GitFileErrorService CreateGitFileErrorService() { var userId = Guid.Parse(User.Identity.GetUserId()); var gitFileErrorService = new GitFileErrorService(userId); return(gitFileErrorService); }
public IHttpActionResult Get(int id) { GitFileErrorService gitFileErrorService = CreateGitFileErrorService(); var gitFileError = gitFileErrorService.GetGitFileErrorById(id); return(Ok(gitFileError)); }
public IHttpActionResult Get() { GitFileErrorService gitFileErrorService = CreateGitFileErrorService(); var gitFileErrors = gitFileErrorService.GetGitFileErrors(); return(Ok(gitFileErrors)); }