Ejemplo n.º 1
0
        public async Task <IActionResult> Get()
        {
            var credits = new CustomMapper <Credit, CreditViewModel>().MapCollection(await _creditReadService.GetAllCredits());

            if (credits.Count() <= 0)
            {
                return(NotFound());
            }

            return(Ok(credits));
        }