Esempio n. 1
0
 public ActionResult GetFavoriteLabeledBooks([FromBody] GetFavoriteLabeledBookRequest request)
 {
     using (var client = GetMainServiceClient())
     {
         var result = client.GetFavoriteLabeledBooks(request.BookIds);
         return(Json(result));
     }
 }
Esempio n. 2
0
        public ActionResult GetFavoriteLabeledBooks([FromBody] GetFavoriteLabeledBookRequest request)
        {
            if (request.BookType == null && (request.BookIds == null || request.BookIds.Count == 0))
            {
                return(Json(new List <object>()));
            }

            var client = GetFavoriteClient();
            var result = client.GetFavoriteLabeledBooks(request.BookIds, request.BookType, GetDefaultProjectType());

            return(Json(result));
        }