public async Task <ActionResult> GetAll() { try { var result = storyService.Get(q => q.Active == true).ToList(); return(Ok(new { data = result })); } catch (Exception e) { return(BadRequest(new { data = new { title = "Error", Msg = "Fail to load organization list!" }, Success = false })); } }
public StoryModel GetStory(int id) { return(_storyService.Get(id)); }
void TestStoryGetBusiness() { var modelOfStory = _storyService.Get(storyFilePath); Assert.NotNull(modelOfStory); }
public IActionResult GetById([FromRoute] int id) { var story = _storyService.Get(id); return Ok(story); }
public StoryModel Get(int id) { _currentStory = _storyService.Get(id); return(_currentStory); }