Example #1
0
 public GetSectionResponse GetSection(GetSectionRequest request)
 {
     var response = new GetSectionResponse();
     var section=_sectionRepository.FindBy(request.Id);
     response.SectionView = section.ConvertToSectionView();
     return response;
 }
Example #2
0
        public JsonResult GetSection(Guid id)
        {
            var getSectionRequest = new GetSectionRequest {Id = id};
            var response = _articleService.GetSection(getSectionRequest);

            return Json(response.SectionView);
        }