public async Task <IEnumerable <EnterpriseResource> > GetAllAsync()
        {
            var enterprises = await enterpriseService.ListAsync();

            var resources = mapper
                            .Map <IEnumerable <Enterprise>, IEnumerable <EnterpriseResource> >(enterprises);

            return(resources);
        }
 public async Task <ActionResult> GetAll()
 {
     return(Ok(await _enterpriseService.ListAsync()));
 }