public int Add(SalalocalprovaViewModel entity)
        {
            m_SalalocalprovaService.Add(new Data.EV_SALALOCALPROVA {
                //ID = entity.Id,
                LOCALPROVAID = entity.Localprovaid,
                SALA         = entity.Sala,
            });

            return(m_SalalocalprovaService.Commit());
        }
        public int Delete(SalalocalprovaViewModel entity)
        {
            var item = m_SalalocalprovaService.GetById(entity.Id);

            if (item != null)
            {
                m_SalalocalprovaService.Delete(item);
            }
            return(m_SalalocalprovaService.Commit());
        }
        public int Update(SalalocalprovaViewModel entity)
        {
            var item = m_SalalocalprovaService.GetById(entity.Id);

            if (item != null)
            {
                item.LOCALPROVAID = entity.Localprovaid;
                item.SALA         = entity.Sala;
                m_SalalocalprovaService.Update(item);
            }

            return(m_SalalocalprovaService.Commit());
        }