示例#1
0
        public async Task <ActionResult <List <OwnerDetails> > > FindAll(CancellationToken cancellationToken)
        {
            var owners = await _ownersRepo.FindAll(cancellationToken);

            var ret = new List <OwnerDetails>();

            foreach (var owner in owners)
            {
                ret.Add(OwnerDetails.FromOwner(owner));
            }

            return(Ok(ret));
        }
        public async Task <ActionResult <List <Owner> > > FindAll(CancellationToken cancellationToken)
        {
            var owner = await _ownersRepo.FindAll(cancellationToken);

            return(Ok(owner));
        }