public Minute GetById(int id) { MM_Minute minuteDbModel = _meetingDbContext.MM_Minutes.FirstOrDefault(r => r.Id == id); if (minuteDbModel == null) { throw new EntityNotFoundException <Minute>(id); } return(minuteDbModel.ConvertToMinutes()); }
public Minute GetByAgendaId(int id) { MM_Minute minuteDbModel = _meetingDbContext.MM_Minutes.FirstOrDefault(m => m.AgendaId == id); //if (minuteDbModel == null) // throw new EntityNotFoundException<Minute>(id); if (minuteDbModel == null) { return(null); } return(minuteDbModel.ConvertToMinutes()); }