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

UpdateAsync() public method

public UpdateAsync ( Reservation reservation ) : Task
reservation Reservation
return Task
        public async Task<int> UpdateAsync(Reservation reservation)
        {
            _context.Entry(reservation).State = EntityState.Modified;
            return await _context.SaveChangesAsync();
        }