public async Task <IActionResult> GetCategoriesAsync() { return(Content(JsonConvert.SerializeObject(await service.CategoriesAsync()), "application/json", Encoding.UTF8)); }