/// <summary>
        /// Converts this instance of <see cref="Sucursal"/> to an instance of <see cref="SucursalDTOS"/>.
        /// </summary>
        /// <param name="entity"><see cref="Sucursal"/> to convert.</param>
        public static SucursalDTOS ToDTO(this Sucursal entity)
        {
            if (entity == null) return null;

            var dto = new SucursalDTOS();

            dto.SucursalId = entity.SucursalId;
            dto.NombreSucursal = entity.NombreSucursal;
            dto.DireccionSucursal = entity.DireccionSucursal;
            dto.FechaSistema = entity.FechaSistema;
            dto.Eliminado = entity.Eliminado;

            entity.OnDTO(dto);

            return dto;
        }
        /// <summary>
        /// Invoked when <see cref="ToDTO"/> operation is about to return.
        /// </summary>
        /// <param name="dto"><see cref="SucursalDTOS"/> converted from <see cref="Sucursal"/>.</param>
partial         static void OnDTO(this Sucursal entity, SucursalDTOS dto);