Ejemplo n.º 1
0
        public IActionResult Create()
        {
            var editorialitems = editorialProxy.Get(editorialServices.BaseUrl, editorialServices.Endpoint);

            ViewBag.Editorial = new SelectList(editorialitems.Select(it => new { it.Id, Name = $"{it.Name} - {it.Campus}" }).ToList(), "Id", "Name");

            return(View(new BookModel()));
        }
Ejemplo n.º 2
0
        public async Task <JobCardListResponse> GetCardJobs(int page = 1, int pageSize = 25, CancellationToken token = default(CancellationToken))
        {
            var result = await _proxy.Get <JobCardListResponse>(Constants.JobsEndpoint, Method.GET, token : token);

            return(result.Result);
        }
Ejemplo n.º 3
0
        public IActionResult Index()
        {
            var books = bookProxy.Get(bookServices.BaseUrl, bookServices.Endpoint);

            return(View(books));
        }
Ejemplo n.º 4
0
        public IActionResult Index()
        {
            var editorials = editorialProxy.Get(editorialServices.BaseUrl, editorialServices.Endpoint);

            return(View(editorials));
        }