public async Task <IActionResult> Get(int id) { return(await SelectOr404 <Ally>((q) => q.FromWorld(CurrentWorldId), (a) => AllyConvert.ModelToJson(a))); }
public async Task <IActionResult> Get() { var result = await Paginated(CurrentSets.Ally).ToListAsync(); return(Ok(result.Select(r => AllyConvert.ModelToJson(r)))); }