Example #1
0
        private GitFileErrorService CreateGitFileErrorService()
        {
            var userId = Guid.Parse(User.Identity.GetUserId());
            var gitFileErrorService = new GitFileErrorService(userId);

            return(gitFileErrorService);
        }
Example #2
0
        public IHttpActionResult Get(int id)
        {
            GitFileErrorService gitFileErrorService = CreateGitFileErrorService();
            var gitFileError = gitFileErrorService.GetGitFileErrorById(id);

            return(Ok(gitFileError));
        }
Example #3
0
        public IHttpActionResult Get()
        {
            GitFileErrorService gitFileErrorService = CreateGitFileErrorService();
            var gitFileErrors = gitFileErrorService.GetGitFileErrors();

            return(Ok(gitFileErrors));
        }