Ejemplo n.º 1
0
        public static void Update(TipoDeAgencia item)
        {
            try
            {
                TipoDeAgenciaEntity entity;

                entity = TipoDeAgenciaMappers.Get(item);

                TipoDeAgenciaDao.Update(entity);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
        public static int Add(TipoDeAgencia item)
        {
            try
            {
                TipoDeAgenciaEntity entity;

                entity  = TipoDeAgenciaMappers.Get(item);
                item.Id = TipoDeAgenciaDao.Add(entity);

                return(item.Id);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 3
0
        public static TipoDeAgencia Get(int id)
        {
            try
            {
                TipoDeAgencia       item;
                TipoDeAgenciaEntity entity;

                entity = TipoDeAgenciaDao.Get(id);
                item   = TipoDeAgenciaMappers.Get(entity);

                return(item);
            }
            catch (Exception)
            {
                throw;
            }
        }