public async Task<bool> UpdateVisitAsync(Visit visit)
    {
      _context.Visits.Update(visit);

      return (await _context.SaveChangesAsync() > 0);
    }
        public async Task <bool> UpdateVisitAsync(Visit visit)
        {
            _context.Visits.Update(visit);

            return(await _context.SaveChangesAsync() > 0);
        }
    public async Task<bool> AddVisitAsync(Visit newVisit)
    {
      _context.Visits.Add(newVisit);

      return (await _context.SaveChangesAsync() > 0);
    }
        public async Task <bool> AddVisitAsync(Visit newVisit)
        {
            _context.Visits.Add(newVisit);

            return(await _context.SaveChangesAsync() > 0);
        }