Ejemplo n.º 1
0
        /// <summary>
        /// Converts this instance of <see cref="Issues"/> to an instance of <see cref="ISSUES"/>.
        /// </summary>
        /// <param name="dto"><see cref="Issues"/> to convert.</param>
        public static ISSUES ToTable(this Issues dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new ISSUES();

            entity.Id             = dto.Id;
            entity.Descripcion    = dto.Descripcion;
            entity.Fecha_Creacion = DateTime.Now;

            dto.OnEntity(entity);

            return(entity);
        }