public async Task <IActionResult> Get() { var credits = new CustomMapper <Credit, CreditViewModel>().MapCollection(await _creditReadService.GetAllCredits()); if (credits.Count() <= 0) { return(NotFound()); } return(Ok(credits)); }
public async Task <IActionResult> Get() { var credits = new CustomMapper <Credit, CreditViewModel>().MapCollection(await _creditReadService.GetAllCredits()); if (credits.Count() <= 0) { return(NotFound()); } return(Ok(credits)); }