AirTNG.Web.Models.Repository.ReservationsRepository.CreateAsync C# (CSharp) Method

CreateAsync() public method

public CreateAsync ( Reservation reservation ) : Task
reservation Reservation
return Task
        public async Task<int> CreateAsync(Reservation reservation)
        {
            _context.Reservations.Add(reservation);
            return await _context.SaveChangesAsync();
        }