コード例 #1
0
        public ActionResult Index(int id)
        {
            var problem = _problemRepository.GetById(id);

            return(Json(new
            {
                id = problem.Id,
                module = problem.Application?.Name,
                status = problem.Status.ToString(),
                fixedInVersion = problem.FixedInVersion,
                shortDescription = problem.ShortDescription,
                description = problem.Description.FixLineBreaks(),
                externalId = problem.ExternalId
            }));
        }