/// <summary> /// Retrieve user list for a spesific user /// </summary> /// <param name="username">MAL Username</param> /// <returns>List containing User information and all anime in the user's list</returns> public async Task <HttpResponseMessage> Get(string username) { var stopWatch = new Stopwatch(); stopWatch.Start(); Log.Information("Received request for {username}'s anime list", username); var userlist = await _animeListRetriever.GetAnimeList(username); var jsonList = _mapper.ConvertMyListToJson(userlist); var response = Request.CreateResponse(HttpStatusCode.OK); response.Content = new StringContent(jsonList, Encoding.UTF8, "application/json"); stopWatch.Stop(); Log.Information("Sent response for {username}'s list. Processing took {duration}", username, stopWatch.Elapsed); return(response); }