public int Delete(EventoturnosViewModel entity)
        {
            var item = m_EventoturnosService.GetById(entity.Idevento);

            if (item != null)
            {
                item.DTEXCLUSAO = DateTime.Now;
                m_EventoturnosService.Update(item);
            }
            return(m_EventoturnosService.Commit());
        }
 public int Add(EventoturnosViewModel entity)
 {
     m_EventoturnosService.Add(new Data.EV_EVENTOTURNOS
     {
         IDEVENTO      = entity.Idevento,
         IDTURNO       = entity.Idturno,
         DTCADASTRO    = DateTime.Now,
         DTATUALIZACAO = DateTime.Now,
     });
     return(m_EventoturnosService.Commit());
 }
 public int Update(EventoturnosViewModel entity)
 {
     throw new NotImplementedException();
 }