AppointmentReminders.Web.Models.Repository.AppointmentRepository.Delete C# (CSharp) Method

Delete() public method

public Delete ( int id ) : void
id int
return void
        public void Delete(int id)
        {
            var appointment = FindById(id);
            _context.Appointments.Remove(appointment);
            _context.SaveChanges();
        }