public async Task <IActionResult> Details(int?Id) { if (Id == null) { return(NotFound()); } var controller = nameof(FeaturesController).Split("Controller")[0]; var html = "detail"; var model = await _productFeatureService.Get(Id); if (User.IsInRole(Roles.Owner) || User.Identity.IsAuthenticated) { html = "managedetail"; } return(View($"~/Views/{controller}/{html}.cshtml", model)); }
public IEnumerable <FeatureDTO> Get() { var result = _featureService.Get().ToList(); for (int i = 0; i < result.Count; i++) { result[i].Stories = _storyService.GetStories().Where(story => story.FeatureId == result[i].ID).ToList(); } return(result); }
public Geo List() { return(featureService.Get()); }
public Core.Dto.Feature Get(Guid id) { return(_featureService.Get(id)); }
public IActionResult GetByFeature(int featureid) { var model = _featureService.Get(featureid); return(Json(model)); }