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