Beispiel #1
0
        public async Task <IActionResult> EbookSearch(EBookSearch model)
        {
            var username = ApplicationUtility.GetTokenAttribute(Request.Headers["Authorization"], "sub");
            var service  = new PublisherRepositoryService(connString);
            var result   = await service.EbookSearch(model);

            var response = new GenericResponse <List <EBookDetail> >()
            {
                IsSuccess    = true,
                Message      = "Data fetched successfully.",
                ResponseCode = 200,
                Result       = result
            };

            return(Ok(response));
        }