コード例 #1
0
        public async Task <ActionResult <VisitorReadDtoWithVisits> > GetVisitorByEmail(string email)
        {
            var visitorItem = await _repository.GetVisitorByEmailAsync(email);

            if (visitorItem != null)
            {
                return(Ok(_mapper.Map <VisitorReadDtoWithVisits>(visitorItem)));
            }
            else
            {
                return(NotFound());
            }
        }